import request from "@/utils/request";

// 查询店铺分类列表
export function getShopCategoryInfoList(query) {
  return request({
    url: "/admin/shopCategoryController/list",
    method: "get",
    params: query
  });
}

//新增编辑店铺分类
export function saveOrUpdate(data) {
  return request({
    url: "/admin/shopCategoryController/saveOrUpdate",
    method: "post",
    data: data,
  });
}

//删除店铺分类
export function removeShopCategoryInfoById(categoryId) {
  return request({
    url: "/admin/shopCategoryController/remove?categoryId=" + categoryId,
    method: "delete",
  });
}

// 店铺列表
export function getShopInfoList(query) {
  return request({
    url: "/admin/shopInfoController/list",
    method: "get",
    params:query
  });
}

// 审核店铺
export function auditShopInfo(data) {
  return request({
    url: "/admin/shopInfoController/audit",
    method: "put",
    data: data
  });
}
